Bootstrap demo

Chapter 2: IoT Components & Arduino

IoT M4-R5 Notes according to NIELIT O Level Syllabus

1. Introduction to IoT Components

An IoT system is a complex integration of various physical and digital components that work together to sense, communicate, analyze, and act upon data.

A. Sensing Components (The "Senses" of IoT)

These are hardware devices that detect and measure physical properties from the environment and convert them into electrical signals (data).

Sensors:

Actuators (The "Muscles" of IoT):

B. Communication Components (The "Nervous System" of IoT)

These components are responsible for transmitting data between devices (Things) and to the cloud/network.

Wired Communication:

Wireless Communication:

C. Computing & Control Components (The "Brain" of IoT)

This is the core processing unit that reads sensor data, processes it, makes decisions, and sends commands to actuators.

D. Structural Components

The physical hardware that forms the platform for the electronic components.

2. Introduction to Arduino

Arduino is an open-source electronics platform based on easy-to-use hardware and software.

A. Why Arduino?

B. Arduino Uno Board Anatomy (Key Components)

C. Arduino IDE (Integrated Development Environment)

The software used to write, compile, and upload code (called a sketch) to the Arduino board.

Basic Structure of a Sketch:

// 1. Variable Declarations & Pre-processor Directives
int sensorPin = A0; // Assign analog pin A0 to variable 'sensorPin'

// 2. setup() function - Runs only once when the sketch starts
void setup() {
  pinMode(13, OUTPUT); // Initialize digital pin 13 as an output
  Serial.begin(9600); // Initialize serial communication at 9600 baud rate
}

// 3. loop() function - Runs repeatedly forever after setup()
void loop() {
  digitalWrite(13, HIGH); // Turn the LED on (HIGH is the voltage level)
  delay(1000); // Wait for a second (1000 milliseconds)
  digitalWrite(13, LOW); // Turn the LED off by making the voltage LOW
  delay(1000); // Wait for a second
}
        

D. Basic Arduino Commands/Functions

Function Description
pinMode(pin, mode) Configures a pin as INPUT or OUTPUT
digitalWrite(pin, value) Writes HIGH (5V) or LOW (0V) to a digital pin
digitalRead(pin) Reads value from a digital pin (HIGH or LOW)
analogRead(pin) Reads value from analog pin (0 to 1023)
analogWrite(pin, value) Writes PWM value (0 to 255) to a pin
Serial.begin(speed) Initializes serial communication
Serial.print(data) Prints data to the Serial Monitor
delay(ms) Pauses program for specified milliseconds

3. Interfacing Components with Arduino

A. Interfacing a Digital Sensor (e.g., PIR Sensor)

B. Interfacing an Analog Sensor (e.g., LDR)

C. Interfacing an Actuator (e.g., LED)

D. Interfacing an Actuator (e.g., Relay Module)

4. Key Concepts for Practicals

Summary: This chapter forms the foundation of practical IoT development. Understanding the role of each component and mastering their interfacing with an Arduino using the basic functions is the primary goal.